<script setup lang="ts">

import { onMounted, ref } from 'vue'
onMounted(async () => {

  mk.vibrator()
})

const clickDou = () => {
  console.log("开抖~~")
  mk.vibrator()

}

const clickArea = async () => {
  const res = await mk.getAreaColumns()
  console.log(res)
}


const clickPhoto = async () => {
  const res2 = await mk.pickerPhoto()
  console.log(res2)
}
const clickCamera = async () => {
  const res = mk.pickerCamera()
  console.log(res)
}



</script>

<template>
  <!-- <van-button type="primary" @click="clickCamera">拍照</van-button>
  <van-button type="success" @click="clickPhoto">相册</van-button>
  <van-button type="default" @click="clickDou">抖动</van-button>
  <van-button type="danger" @click="clickArea">获取省市区</van-button> -->
  <RouterView />
</template>

<style lang="scss" scoped></style>